Reading Week Consolidation

summary

{base}

Obtain summary statistics or detailed regression output

geom_point

{GGPLOT2}

Generates a scatter plot

ggplot

{GGPLOT2}

Create a ggplot graph

cut

{base}

Convert Numeric to Factor

c

{base}

Combine values/vectors into a vector

setwd

{base}

Set Working Directory

aes

{GGPLOT2}

Construct aesthetic mapping of a ggplot graph

with

{base}

evaluate expression in the context of a data frame

attach

{base}

Attach Set of R Objects to Search Path

ifelse

{base}

Return a or b depending on the value of test

read_excel

{readxl}

Read an Excel file

library

{base}

Load an R package

theme_classic

{GGPLOT2}

A minimalistic theme with no gridlines

prop.test

{stats}

Test of Equal or Given Proportions

t.test

{stats}

Performs one and two sample t-tests on vectors of data.

lm

{base}

Fit a linear model

table

{base}

Obtain frequency table of a variable/cross-tabulation of two variables

chisq.test

{stats}

Chi-Squared test (e.g. for cross-tabulations)

ordered

{dplyr}

Create an ordered factor

mutate

{dplyr}

Modify/create a column in a data frame

read_dta

{haven}

Read a .dta file (Stata data)

geom_smooth

{GGPLOT2}

Generates a smoothed conditional means curve / line

leveneTest

{car}

Computes Levene’s test for homogeneity of variance across groups.

The end!